package com.kkwrite.regimen.common.entity.dto;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Ron on 2018/8/26 12:32.
 *
 * @author Ron
 */
public class ShopMessageOutDTO implements Serializable {
    private static final long serialVersionUID = -8558769085258458320L;

    private Integer totalPages;
    private Long totalElements;
    private List<OutData> elementList;

    public ShopMessageOutDTO() {
        elementList = new ArrayList<>();
    }

    public OutData getOutData() {
        return new OutData();
    }

    public Integer getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(Integer totalPages) {
        this.totalPages = totalPages;
    }

    public Long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(Long totalElements) {
        this.totalElements = totalElements;
    }

    public List<OutData> getElementList() {
        return elementList;
    }

    public void setElementList(List<OutData> elementList) {
        this.elementList = elementList;
    }

    @Override
    public String toString() {
        return "ShopMessageOutDTO{" +
                "totalPages=" + totalPages +
                ", totalElements=" + totalElements +
                ", elementList=" + elementList +
                '}';
    }

    public class OutData implements Serializable {
        private static final long serialVersionUID = 5871346979711471451L;
        private Integer type;
        private String title;
        private String coverImagePath;
        private Integer contentWay;
        private String content;
        private LocalDateTime createTime;

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getCoverImagePath() {
            return coverImagePath;
        }

        public void setCoverImagePath(String coverImagePath) {
            this.coverImagePath = coverImagePath;
        }

        public Integer getContentWay() {
            return contentWay;
        }

        public void setContentWay(Integer contentWay) {
            this.contentWay = contentWay;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public LocalDateTime getCreateTime() {
            return createTime;
        }

        public void setCreateTime(LocalDateTime createTime) {
            this.createTime = createTime;
        }

        @Override
        public String toString() {
            return "OutData{" +
                    "type=" + type +
                    ", title='" + title + '\'' +
                    ", coverImagePath='" + coverImagePath + '\'' +
                    ", contentWay=" + contentWay +
                    ", content='" + content + '\'' +
                    ", createTime=" + createTime +
                    '}';
        }
    }

}
